/*
 * Defs.h
 *
 *  Created on: 09/11/2011
 *      Author: arleudo
 */

#ifndef DEFS_H_
#define DEFS_H_

#define MAX_VELOCITY 8

#define MAX_MINIM -8

//#define ACCEL 2

#define StringStream std::ostringstream

#define IS_KEY_DOWN(X) World::getInstance()->getWindow()->GetInput().IsKeyDown( X )

#define PRINT(X) std::cout << X << std::endl;

#define IS_LIMIT_RIGHT sprite->GetPosition().x + sprite->GetImage()->GetWidth() >= window.GetWidth()

#define IS_LIMIT_LEFT sprite->GetPosition().x <= 0

#define IS_LIMIT_UP sprite->GetPosition().y <= 0

#define IS_LIMIT_DOWN sprite->GetPosition().y + sprite->GetImage()->GetHeight() >= window.GetHeight()

#define DISPLAY World::getInstance()->getWindow()->Display();

#endif /* DEFS_H_ */
